home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / EModules / files / segments.e < prev    next >
Encoding:
Text File  |  1997-11-30  |  948 b   |  37 lines

  1. /*
  2. **   $VER: segments.e V0.9B
  3. **
  4. **   Segment Definitions.
  5. **
  6. **   (C) Copyright 1996-1997 DreamWorld Productions.
  7. **       All Rights Reserved.
  8. */
  9.  
  10. OPT MODULE
  11. OPT EXPORT
  12. OPT PREPROCESS
  13.  
  14. MODULE 'dpkernel/dpkernel','system/register','misc/time','files/files'
  15.  
  16. /****************************************************************************
  17. ** Segment object.
  18. */
  19.  
  20. CONST SEGVERSION   = 1,
  21.       TAGS_SEGMENT = $FFFB0000 OR ID_SEGMENT
  22.  
  23. OBJECT segment
  24.   head[1] :ARRAY OF head     /* 00: Standard structure header */
  25.   prev    :PTR TO segment    /* 12: Previous segment */
  26.   next    :PTR TO segment    /* 16: Next segment */
  27.   memtype :LONG              /* 20: Memory type (eg MEM_DATA) */
  28.   address :PTR TO CHAR       /* 24: Pointer to segment start */
  29.   source  :PTR TO filename   /* 28: Source of segment */
  30. ENDOBJECT
  31.  
  32. CONST SGA_Prev    = 12 OR TAPTR,
  33.       SGA_Next    = 16 OR TAPTR,
  34.       SGA_MemType = 20 OR TLONG,
  35.       SGA_Source  = 28 OR TAPTR
  36.  
  37.